package com.kuzan.autocloud.common.model.form;

import com.kuzan.autocloud.common.model.Base;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <p>Description: 资源锁定</p>
 *
 * @author kuzank
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "sys_form_operation")
public class FormOperation extends Base {

    /**
     * 操作code
     */
    @Column(length = 32)
    private String code;
    /**
     * 相关流程
     */
    @Column(length = 32)
    private String workflow;
    /**
     * 记录ID
     */
    @Column(length = 32)
    private String record;
    /**
     * 表单
     */
    @Column(length = 32)
    private String form;
    /**
     * 超时时间
     */
    private String timeout;
    /**
     * 是否释放
     */
    @Column(columnDefinition = "bit(1) default 1")
    private boolean isrelease = true;
    /**
     * 什么操作锁定的
     */
    @Column(length = 32)
    private String operation;

}
